<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
%>
<!DOCTYPE html>
<html lang="en">

<head>
<title>${pd.SYSNAME}</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="<c:url value='/static/mune/css/home.css'/>" />

<script src="../static/js/jquery-1.7.2.js"></script>
<script type="text/javascript">
	$(function(){
		var user_id ='${user.USER_ID}';
		var menuIdList ='${menuIdList}';
		var menuList =JSON.parse(menuIdList);
		var menu_id='';
	 	for (var i = 0; i < menuList.length; i++) {
	 		menu_id=menuList[i].MENU_ID;
	 		$("#menu_"+menu_id).show();
		} 
	 	if(user_id=='1'){//系统管理员
	 		for(var i =1;i<7;i++){
	 			$("#menu_"+i).show();
	 		}
	 	}
	});
		
</script>
<script src="<c:url value='/static/js/common/common.js'/>"></script>
  <SCRIPT language=JScript event=OnObjectReady(objObject,objAsyncContext) for=foo>
//    if(objObject.IPEnabled != null && objObject.IPEnabled != "undefined" && objObject.IPEnabled == true)
//    {
//     if(objObject.MACAddress != null && objObject.MACAddress != "undefined")
//     MACAddr = unescape(objObject.MACAddress);
//     }
  </SCRIPT>
  <script type="text/javascript">
  function goSystem(url){
// 	  alert('${user.USERNAME}'+"_"+MACAddr);
	  location.href=url+"/login_login?params="+'${user.USERNAME}'+"_"+MACAddr;
  }
  function goSetting(){
	  window.location.href=rootPath+"/main/index";
  }
  function goSignal(url){
	  location.href=url;
  }
  </script>
</head>
<body>
<div style="display:none">
<OBJECT id=locator classid=CLSID:76A64158-CB41-11D1-8B02-00600806D9B6 VIEWASTEXT></OBJECT>
<OBJECT id=foo classid=CLSID:75718C9A-F029-11d1-A1AC-00C04FB6C223></OBJECT>
</div>
	<div>
		<ul id="menu">
			<li id="menu_1" style="display:none;"><img src="<c:url value='/static/mune/images/1-1.png'/>" onclick="goSystem('http://106.15.44.249:1090/Dispatch')"/></li>
			<li id="menu_2" style="display:none;"><img src="<c:url value='/static/mune/images/2-1.png'/>" onclick="goSystem('http://106.15.44.249:1088/BrtBus')"/></li>
			<li id="menu_3" style="display:none;"><img src="<c:url value='/static/mune/images/3-1.png'/>"/></li>
			<li id="menu_4" style="display:none;"><img src="<c:url value='/static/mune/images/4-1.png'/>" /></li>
			<li id="menu_5" style="display:none;"><img src="<c:url value='/static/mune/images/5-1.png'/>" onclick="goSystem('http://128.64.90.64:8090/ifacility')" /></li>
			<li id="menu_6" style="display:none;"><img src="<c:url value='/static/mune/images/6-1.png'/>" onclick="goSignal('http://106.15.44.249:1088/BrtSignal/login')"/></li>
		</ul>
	</div>
	<div style="position: fixed; /*or前面的是absolute就可以用*/  bottom: 20px; right:5%">
		<img src="../static/mune/images/setting.png" onclick="goSetting()"/>
	</div>

	 
	
</body>
 <script type="text/javascript">
  /**获取本机MAC 开始*/
//   var service = locator.ConnectServer();
  var MACAddr = "00:50:56:C0:00:08";
//   service.Security_.ImpersonationLevel=3;
//   service.InstancesOfAsync(foo, 'Win32_NetworkAdapterConfiguration');
 /**获取本机MAC 结束*/
  </script>



</html>